var user_url = "/user/";
var upPassword_obj = extend(module,{
	id: "upPassword",
	html:"<div id=\"upPassword\" class=\"mainblock\">"
		+"<div style=\"text-align: center\"><h2>修改密码</h2></div><br/>"
		+"<div class=\"flabel\">旧密码:</div>"
		+"<div class=\"ffield\"><input name=\"oldPwd\" type=\"password\"/></div>"
		+"<div class=\"flabel\">新密码:</div>"
		+"<div class=\"ffield\"><input name=\"userPwd\" type=\"password\"/></div>"
		+"<div class=\"flabel\">重复新密码:</div>"
		+"<div class=\"ffield\"><input name=\"userPwd2\" type=\"password\"/></div>"
		+"<div class=\"fbutton\"><input type=\"button\" value=\"提 交\" onclick='upPassword_obj.sub()'/></div>"
		+"</div>",
	sub: function() {
		if(jQuery('input[name=userPwd]').val()!=jQuery('input[name=userPwd2]').val()){alert('两次输入新密码不相同');return false;}
		req(user_url+"update",{userPwd:jQuery('input[name=userPwd]').val(),oldPwd:jQuery('input[name=oldPwd]').val()},function(t) {
			alert("成功！");
		});
	}
});
lvan.m.upPassword=function() {
	upPassword_obj.init();
};
lvan.m.userManage=function() {
};